.class final Lcom/brixd/niceapp/service/UserService$1;
.super Ljava/lang/Object;
.source "UserService.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/service/UserService;->updateUserTrack(ILretrofit/Callback;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic val$callback:Lretrofit/Callback;


# direct methods
.method constructor <init>(Lretrofit/Callback;)V
    .registers 2

    .prologue
    .line 279
    iput-object p1, p0, Lcom/brixd/niceapp/service/UserService$1;->val$callback:Lretrofit/Callback;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 4
    .param p1, "error"    # Lretrofit/RetrofitError;

    .prologue
    .line 293
    # getter for: Lcom/brixd/niceapp/service/UserService;->mContext:Landroid/content/Context;
    invoke-static {}, Lcom/brixd/niceapp/service/UserService;->access$000()Landroid/content/Context;

    move-result-object v0

    const-string v1, "UpdateUserTrackFail"

    invoke-static {v0, v1}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 295
    iget-object v0, p0, Lcom/brixd/niceapp/service/UserService$1;->val$callback:Lretrofit/Callback;

    if-eqz v0, :cond_12

    .line 296
    iget-object v0, p0, Lcom/brixd/niceapp/service/UserService$1;->val$callback:Lretrofit/Callback;

    invoke-interface {v0, p1}, Lretrofit/Callback;->failure(Lretrofit/RetrofitError;)V

    .line 298
    :cond_12
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 279
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/service/UserService$1;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 5
    .param p1, "result"    # Lorg/json/JSONObject;
    .param p2, "response"    # Lretrofit/client/Response;

    .prologue
    .line 283
    const-string v0, "UserService"

    invoke-virtual {p1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/zuiapps/suite/utils/log/LogUtil;->i(Ljava/lang/String;Ljava/lang/String;)V

    .line 284
    invoke-static {p1}, Lcom/brixd/niceapp/service/UserService;->saveUserTrackModel(Lorg/json/JSONObject;)V

    .line 286
    iget-object v0, p0, Lcom/brixd/niceapp/service/UserService$1;->val$callback:Lretrofit/Callback;

    if-eqz v0, :cond_15

    .line 287
    iget-object v0, p0, Lcom/brixd/niceapp/service/UserService$1;->val$callback:Lretrofit/Callback;

    invoke-interface {v0, p1, p2}, Lretrofit/Callback;->success(Ljava/lang/Object;Lretrofit/client/Response;)V

    .line 289
    :cond_15
    return-void
.end method
